import React from 'react';

import { Avatar } from 'antd';
import { rest } from '@umijs/deps/compiled/lodash';
let mCol = {
  span: 12,
  offset: 6,
};

const avatar_icon = (props: any) => {
  const { icon, ...restProps } = props;
  return (
    <Avatar
      icon={
        <svg aria-hidden="true" style={{ width: '100%', height: '100%' }}>
          <use xlinkHref={icon ? icon : '#iconqie-01'}></use>
        </svg>
      }
      {...restProps}
    />
  );
};

export default avatar_icon;
